import { getFormatterPrice } from '@const/filter'
// 订单状态
export const statusArr = {
  // 1: '待确认',
  // 2: '待验收',
  // 3: '部分收货',
  // 4: '已完成',
  // 5: '已撤销',
  // 6: '已拒绝',
  // 8: '待验收',
  // 9: '待验收'
  0: '全部',
  1: '待配送商响应',
  2: '待配送商发货',
  3: '待收货',
  4: '部分收货',
  5: '已完成',
  6: '已撤销',
  7: '已拒绝'
}

// 产品大类
export const categoryArr = {
  1: '高值',
  2: '低值',
  3: '试剂',
  4: '设备',
  5: '器械'
}

// 列表--搜索字段
export const indexSearchData = [
  {
    key: 'purchaseOrderCode',
    title: '采购单号', // 1
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'relationOrderCode',
    title: '关联订单号', // 1
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'requireGoodsNo',
    title: '院内要货单号', // 1
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'applyDept', // 1
    title: '申请科室',
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'distributorName',
    title: '配送商', // 1
    type: 'input',
    attr: {
      placeholder: '请输入'
    }
  },
  {
    key: 'time',
    title: '创建时间', // 1
    type: 'time',
    fieldname: ['beginDate', 'endDate'],
    attr: {
      style: 'width:300px !important;',
      class: 'daterange',
      type: 'daterange',
      'start-placeholder': '开始时间',
      'end-placeholder': '结束时间',
      'default-time': ['00:00:00', '23:59:59']
    }
  }
]

// 列表--列表表头
export const indexTableData = [
  // { type: 'index', label: '序号', width: 60 },
  { prop: 'purchaseOrderCode', label: '采购单号', width: 170, 'show-overflow-tooltip': true }, // 1
  { prop: 'relationOrderCode', label: '关联订单号', width: 170, 'show-overflow-tooltip': true }, // 1
  { prop: 'requireGoodsNo', label: '院内要货单号', width: 170, 'show-overflow-tooltip': true }, // 1
  { prop: 'applyDept', label: '申请科室', width: 170, 'show-overflow-tooltip': true }, // 1
  // { prop: 'purchaseOrderCode', label: 'M平台订单编号', width: 170 },
  // { prop: 'hospitalOrderCode', label: '医院订单编号', width: 180 },
  { prop: 'prodTypeCount', label: '品种数', width: 180 },
  { prop: 'prodTotalCount', label: '产品数量', width: 130 }, // 1
  { prop: 'orderAmount', label: '订单金额 （元）', width: 160, formatter: row => getFormatterPrice(row.orderAmount) },
  { prop: 'receiveAddress', label: '收货地址', width: 120, 'show-overflow-tooltip': true }, // 1
  { prop: 'contacts', label: '联系人', width: 120 }, // 1
  { prop: 'contactNumber', label: '联系电话', width: 120, 'show-overflow-tooltip': true }, // 1
  { prop: 'distributorName', label: '配送商', 'min-width': 180, 'show-overflow-tooltip': true },
  { prop: 'createTime', label: '创建时间', width: 180 },
  { prop: 'orderStatus',
    label: '订单状态',
    width: 180,
    formatter: row => {
      return statusArr[row.orderStatus]
    } },

  { prop: 'action', label: '操作', width: 150, fixed: 'right' }
]
// 列表页-tab
export const indexTabsArr = [
  { lab: '待配送商响应', val: 1, badge: { value: null } },
  { lab: '待配送商发货', val: 2, badge: { value: null } },
  { lab: '待收货', val: 3, badge: { value: null } },
  { lab: '部分收货', val: 4, badge: { value: null } },
  { lab: '已完成', val: 5, badge: { value: null } },
  { lab: '已撤销', val: 6, badge: { value: null } },
  { lab: '已拒绝', val: 7, badge: { value: null } },
  { lab: '全部', val: 0, badge: { value: null } }
]
// 详情表单内容
export const detailsDetailForm = [
  { key: 'purchaseOrderCode', title: '平台订单编号' },
  { key: 'hospitalOrderCode', title: '医院订单编号' },
  { key: 'purchaseOrderStatus', title: '订单状态' },
  { key: 'createdAt', title: '订单提交时间' },
  { key: 'deliveryCompanyName', title: ' 配送商' },
  { key: 'productSpecCount', title: '品规数' },
  { key: 'orderDetailCount', title: '总数量' },
  { key: 'detailedAddress', title: '收货地址' },
  { key: 'user_Name', title: '联系人' },
  { key: 'user_Phone', title: '联系电话' },
  { key: 'orderTotalAmount', title: '订单总金额' }
]
export const detailTabsArr = [
  { lab: '订单信息', val: 0, disabled: null },
  { lab: '收货信息', val: 1, disabled: null }
]
export const recordFormDetail = [
  [
  //  { key: 'purchaseOrderStatus', label: '订单状态' },
    { key: 'purchaseOrderCode', label: '采购单号' }, // 1
    { key: 'relationOrderCode', label: '关联订单号' }, // 1
    { key: 'statusName', label: '订单状态' }], // 1
  [{ key: 'createDate', label: '创建时间' }, // 1
    { key: 'applyDept', label: '申请科室' }, // 1

    { key: 'distributorName', label: ' 配送商' }],
  [{ key: 'receiveAddress', label: '收货地址' },
    { key: 'contacts', label: '联系人' },
    { key: 'contactNumber', label: '联系电话' }
  ]
]
// 详情 - 表格
export const detailsTableData = [
  { label: '序号', type: 'index', width: 60 },
  { prop: 'orderItemCode', label: '订单明细编号', width: 185 },
  { prop: 'hospitalProductCode', label: '医院产品编码', width: 150 },
  { prop: 'hospitalProductName', label: '医院产品名称', width: 150 },
  { prop: 'specification', label: '规格', width: 150 },
  { prop: 'productType', label: '型号', width: 150 },
  { prop: 'manufacturer', label: '生产厂家', width: 150 },
  { prop: 'registrationNumber', label: '注册证号/备案证号', width: 170 },
  { prop: 'category',
    label: '产品大类',
    width: 150,
    formatter: row => {
      return categoryArr[row.category]
    } },
  { prop: 'price', label: '单价（元）', width: 150, formatter: row => getFormatterPrice(row.price) },
  { prop: 'purchaseNum', label: '订单数量/单位', width: 150 },
  { prop: 'detailAmount', label: '小计金额(元)', width: 150, formatter: row => getFormatterPrice(row.detailAmount) },
  // { prop: 'provinceProductCode', label: '省平台产品编码', width: 150 },
  { prop: 'itemCode', label: 'M平台产品编码', width: 150 },
  { prop: 'storageCondition', label: '储存条件', width: 150 }
]

// 部分收货 - 详情表单内容
export const partDetailsDetailForm = [
  { key: 'purchaseOrderStatus', title: '订单状态' },
  { key: 'createdAt', title: '订单提交时间' },
  { key: 'deliveryCompanyName', title: ' 配送商' },
  { key: 'detailedAddress', title: '收货地址' },
  { key: 'user_Name', title: '联系人' },
  { key: 'user_Phone', title: '联系电话' },
  { key: 'orderTotalAmount', title: '订单总金额' }
]

// 部分收货 - 详情 - 表格
export const partDetailsTableData = [
  { label: '序号', type: 'index', width: 56 },
  { prop: 'purchaseDetailCode', label: '采购明细单号', width: 150, 'show-overflow-tooltip': true }, // 1
  { prop: 'relationDetailCode', label: '关联明细单号', width: 150, 'show-overflow-tooltip': true }, // 1
  { prop: 'prodCustomCode', label: '产品编码', width: 150, 'show-overflow-tooltip': true }, // 1
  { prop: 'prodName', label: '产品名称', width: 150, 'show-overflow-tooltip': true }, // 1
  { prop: 'prodSpecs', label: '规格', width: 150, 'show-overflow-tooltip': true },
  { prop: 'prodModel', label: '型号', width: 150, 'show-overflow-tooltip': true },
  { prop: 'minUnit', label: '最小单位', width: 100 },
  { prop: 'price', label: '单价 （元）', width: 150, formatter: row => getFormatterPrice(row.price) },
  { prop: 'registrationNumber', label: '注册证号/备案证号', width: 170, 'show-overflow-tooltip': true },
  { prop: 'manufacturer', label: '生产厂家', width: 150, 'show-overflow-tooltip': true },

  { prop: 'prodBigCategory',
    label: '产品大类',
    width: 100 },

  { prop: 'purchaseCount', label: '采购数量', width: 150 },
  { prop: 'detailAmount', label: '小计金额（元）', width: 150, formatter: row => getFormatterPrice(row.detailAmount) },
  { prop: 'remarks', label: '备注', width: 150, 'show-overflow-tooltip': true },
  { prop: 'deliveryCompanyProdCode', label: '配送商产品编码', width: 150, 'show-overflow-tooltip': true }, // 1
  { prop: 'receivedCount', label: '已收货数量', width: 150 }, // 1
  { prop: 'unreceivedCount', label: '待收货数量', width: 150 }
]
export const reciveDetailInfo = [
  [
    //  { key: 'purchaseOrderStatus', label: '订单状态' },
    { key: 'purchaseOrderCode', label: '采购单号' }, // 1
    { key: 'relationOrderCode', label: '关联订单号' }, // 1
    { key: 'statusName', label: '订单状态' }], // 1
  [{ key: 'createDate', label: '创建时间' }, // 1
    { key: 'applyDept', label: '申请科室' }, // 1

    { key: 'distributorName', label: ' 配送商' }],
  [{ key: 'receiveAddress', label: '收货地址' },
    { key: 'contacts', label: '联系人' },
    { key: 'contactNumber', label: '联系电话' }
  ]
]
// 部分收货 - 收货明细表单内容
export const receiptDetailsForm = [
  { key: 'inStockCode', title: '收货单号' },
  { key: 'inStockObjCode', title: '收货时间' },
  { key: 'createdAt', title: ' 收货单数量' },
  { key: 'status', title: '实际收货数量' }
]

// 部分收货 - 收货明细 - 表格
export const receiptDetailsTable = [
  // { width: '40', prop: 'placeholder', fixed: 'left', type: 'expand' },
  { label: '序号', type: 'index', width: 56 },
  { prop: 'receiveDetailCode', label: '收货明细单号', width: 150, 'show-overflow-tooltip': true }, // 1
  { prop: 'relationDetailCode', label: '关联明细单号', width: 150, 'show-overflow-tooltip': true }, // 1
  { prop: 'prodCustomCode', label: '产品编码', width: 150, 'show-overflow-tooltip': true }, // 1
  { prop: 'prodName', label: '产品名称', width: 150, 'show-overflow-tooltip': true }, // 1
  { prop: 'prodSpecs', label: '规格', width: 150, 'show-overflow-tooltip': true },
  { prop: 'prodModel', label: '型号', width: 150, 'show-overflow-tooltip': true },
  { prop: 'minUnit', label: '最小单位', width: 100 },
  { prop: 'price', label: '单价 (元)', width: 150, formatter: row => getFormatterPrice(row.price) }, // 1
  { prop: 'registrationNumber', label: '注册证号/备案证号', width: 150, 'show-overflow-tooltip': true }, // 1
  { prop: 'manufacturer', label: '生产厂家', width: 150, 'show-overflow-tooltip': true }, // 1
  {
    prop: 'prodBigCategory',
    label: '产品大类',
    width: 100
  },
  { prop: 'purchaseCount', label: '采购数量', width: 150 }, // 1
  { prop: 'detailAmount', label: '小计金额 （元）', width: 150, formatter: row => getFormatterPrice(row.detailAmount) }, // 1
  { prop: 'remarks', label: '备注', width: 150, 'show-overflow-tooltip': true },
  { prop: 'deliveryCompanyProdCode', label: '配送商产品编码', width: 150, 'show-overflow-tooltip': true }, // 1
  { prop: 'receivedCount', label: '收货数量', width: 150 }, // 1
  { prop: 'refuseCount', label: '拒收数量', width: 120 }
]

// 部分收货 - 收货明细 - 表格
export const receiptDetailsTableInside = [
  { label: '序号', type: 'index', width: 80 },
  { prop: 'udi', label: 'UDI', width: 150 },
  { prop: 'barCode', label: '主条码', width: 150 },
  { prop: 'productBatch', label: '批号', width: 150 },
  { prop: 'productDate', label: '生产日期', width: 150 },
  { prop: 'expDate', label: '有效期', width: 150 },
  { prop: 'serialNumber', label: '序列号', width: 150 },
  { prop: 'num', label: '数量', width: 170 },
  { prop: 'entryNumd', label: '条码图片', width: 150 }
]
// 收货记录 弹框详情列表
export const reciveTableInside = [
  { label: '序号', type: 'index', width: 80 },
  // { prop: 'udi', label: 'UDI', width: 150 },
  // { prop: 'barCode', label: '主条码', width: 150 },
  // { prop: 'productBatch', label: '批号', width: 150 },
  { prop: 'barCode', label: '主码', width: 150 },
  { prop: 'productDate', label: '生产日期', width: 150 },
  { prop: 'expDate', label: '失效日期', width: 150 },
  { prop: 'productBatch', label: '批号', width: 150 },
  { prop: 'serialNumber', label: '序列号', width: 150 },
  { prop: 'udi', label: 'UDI', width: 150 },
  { prop: 'count', label: '数量', width: 170 }
]
// 质检 - 质检明细表单内容
export const qualityTestingForm = [
  { key: 'purchaseOrderCode', title: '平台订单编号' },
  { key: 'hospitalOrderCode', title: ' 医院订单编号' },
  { key: 'createdAt', title: ' 订单提交时间' },
  { key: 'deliveryCompanyName', title: ' 配送商' },
  { key: 'orderDetailCount', title: ' 总数量' },
  { key: 'receiveNum', title: ' 已实收数量' },
  { key: 'returnNum', title: '质检退回数量' },
  { key: 'awaitReceiveNum', title: '待收数量' },
  { key: 'detailedAddress', title: '收货地址' },
  { key: 'user_Name', title: '联系人' },
  { key: 'user_Phone', title: '联系电话' }
]

// 质检 - 订单明细表格
export const orderTableData = [
  { label: '序号', type: 'index', width: 56 },
  { prop: 'orderItemCode', label: '订单明细编号', width: 200 },
  { prop: 'hospitalProductCode', label: '医院产品编码', width: 130 },
  { prop: 'hospitalProductName', label: '医院产品名称', 'min-width': 150 },
  { prop: 'specification', label: '产品规格', width: 150 },
  { prop: 'productType', label: '产品型号', width: 150 },
  { prop: 'manufacturer', label: '生产厂家', width: 170 },
  { prop: 'registrationNumber', label: '注册证号/备案证号', width: 200 },
  { prop: 'category',
    label: '产品大类',
    width: 90,
    formatter: row => {
      return categoryArr[row.category]
    } },
  { prop: 'price', label: '单价（元）', width: 100, formatter: row => getFormatterPrice(row.price) },
  { prop: 'purchaseNum', label: '订单数量/单位', width: 130 },
  { prop: 'receiveNum', label: '实际收货数量', width: 130 },
  { prop: 'returnNum', label: '质检退回数量', width: 130 },
  { prop: 'detailAmount', label: '小计金额(元)', width: 120, formatter: row => getFormatterPrice(row.detailAmount) },
  { prop: 'storageCondition', label: '储存条件', width: 100 },
  { prop: 'provinceProductCode', label: '省平台产品编码', width: 150 },
  { prop: 'itemCode', label: 'M平台产品编码', width: 150 }
]

// 待质检 - 表格
export const qualityTestingTableData = [
  { prop: 'hospitalProductCode', label: '医院产品编码', 'min-width': 150, 'show-overflow-tooltip': true },
  { prop: 'hospitalProductName', label: '医院产品名称', 'min-width': 150, 'show-overflow-tooltip': true },
  { prop: 'specification', label: '规格', 'min-width': 100, 'show-overflow-tooltip': true },
  { prop: 'productType', label: '型号', 'min-width': 100, 'show-overflow-tooltip': true },
  { prop: 'manufacturer', label: '生产厂家', 'min-width': 150, 'show-overflow-tooltip': true },
  { prop: 'registrationNumber', label: '注册证号/备案证号', 'min-width': 190, 'show-overflow-tooltip': true },
  { prop: 'receiveNum', label: '发货数量', width: 90 },
  { prop: 'unit', label: '计量单位', width: 90 },
  { prop: 'returnNum', label: '质检异常数量', width: 120 },
  { prop: 'storageCondition', label: '储存条件', width: 90 },
  { prop: 'productProductcCode', label: '省平台产品编码', 'min-width': 150, 'show-overflow-tooltip': true },
  { prop: 'itemCode', label: 'M平台产品编码', width: 140, 'show-overflow-tooltip': true }
]
// 产品大类
export const PRODUCT_CATEGORY = {
  1: '高值',
  2: '低值',
  3: '试剂',
  4: '设备',
  5: '低值'
}
// tab切换
export const qualityTestingTabsArr = [
  { lab: '订单明细', val: 1 },
  { lab: '待质检信息', val: 2 }
]

// 收货 - 质检明细表单内容
export const receivingGoodsForm = [
  { key: 'purchaseOrderCode', title: '平台订单编号' },
  { key: 'hospitalProductCode', title: ' 医院订单编号' },
  { key: 'createdAt', title: ' 订单提交时间' },
  { key: 'deliveryCompanyName', title: ' 配送商' },
  { key: 'productSpecCount', title: ' 品规数' },
  { key: 'orderDetailCount', title: ' 总数量' },
  { key: 'receiveNum', title: ' 已实收数量' },
  { key: 'returnNum', title: ' 质检退回数量' },
  { key: 'awaitReceiveNum', title: ' 待收数量' },
  { key: 'detailedAddress', title: '收货地址' },
  { key: 'user_Name', title: '联系人' },
  { key: 'user_Phone', title: '联系电话' }
]

// 收货 - 订单明细表格
export const receivingGoodsOrderTableData = [
  { label: '序号', type: 'index', width: 40 },
  { prop: 'orderItemCode', label: '订单明细编号', width: 190 },
  { prop: 'hospitalProductCode', label: '医院产品编码', width: 150 },
  { prop: 'hospitalProductName', label: '医院产品名称', width: 150 },
  { prop: 'specification', label: '产品规格', width: 150 },
  { prop: 'productType', label: '产品型号', width: 150 },
  { prop: 'manufacturer', label: '生产厂家', width: 170 },
  { prop: 'registrationNumber', label: '注册证号/备案证号', width: 250 },
  { prop: 'category',
    label: '产品大类',
    width: 76,
    formatter: row => {
      return categoryArr[row.category]
    } },
  { prop: 'price', label: '单价（元）', width: 100, formatter: row => getFormatterPrice(row.price) },
  { prop: 'purchaseNum', label: '订单数量/单位', width: 80 },
  { prop: 'receiveNum', label: '实际收货数量', width: 80 },
  { prop: 'returnNum', label: '质检退回数量', width: 80 },
  { prop: 'awaitReceiveNum', label: '待收货数量', width: 80 },
  { prop: 'detailAmount', label: '小计金额(元)', width: 130, formatter: row => getFormatterPrice(row.detailAmount) },
  { prop: 'storageCondition', label: '储存条件', width: 100 },
  { prop: 'provinceProductCode', label: '省平台产品编码', width: 150 },
  { prop: 'itemCode', label: 'M平台产品编码', width: 150 }
]

// 收货 - 待收货信息表格
export const receivingGoodsTableData = [
  { type: 'selection', fixed: 'left' },
  { width: '40', prop: 'placeholder', fixed: 'left', type: 'expand' },
  { prop: 'hospitalProductCode', label: '医院产品编码', width: 150 },
  { prop: 'hospitalProductName', label: '医院产品名称', width: 150 },
  { prop: 'specification', label: '产品规格', width: 150 },
  { prop: 'productType', label: '产品型号', width: 150 },
  { prop: 'manufacturer', label: '生产厂家', width: 150 },
  { prop: 'registrationNumber', label: '注册证号/备案证号', width: 250 },
  { prop: 'category',
    label: '产品大类',
    width: 150,
    formatter: row => {
      return categoryArr[row.category]
    } },
  { prop: 'receiveNum', label: '发货数量', width: 150 },
  { prop: 'returnNum', label: '质检异常数量', width: 150 },
  { prop: 'awaitReceiveNum', label: '已扫码/待收数量', width: 150 },
  { prop: 'storageCondition', label: '储存条件', width: 150 },
  { prop: 'provinceProductCode', label: '省平台产品编码', width: 150 },
  { prop: 'itemCode', label: 'M平台产品编码', width: 150 }
]

// 收货 - 待收货产品表格
export const receivingGoodsItemArr = [
  { label: '序号', type: 'index', width: 80 },
  { prop: 'udi', label: 'UDI', width: 150 },
  { prop: 'barCode', label: '主条码', width: 150 },
  { prop: 'productBatch', label: '批号', width: 150 },
  { prop: 'erialNumber', label: '序列号', width: 150 },
  { prop: 'productDate', label: '生成日期', width: 250 },
  { prop: 'expDate', label: '有效期', width: 150 },
  { prop: 'num', label: '数量', width: 150 },
  { prop: 'entryNumf', label: '条码图片', width: 150 }
]
export const dialogReceiptDetailsTable = [
  { prop: 'prodCustomCode', label: '产品编码', width: 150 }, // 1
  { prop: 'prodName', label: '产品名称', width: 150 }, // 1
  { prop: 'prodSpecs', label: '规格', width: 150 },
  { prop: 'prodModel', label: '型号', width: 150 },
  { prop: 'minUnit', label: '最小单位', width: 150 },
  { prop: 'price', label: '单价 (元)', width: 150, formatter: row => getFormatterPrice(row.price) }, // 1
  { prop: 'registrationNumber', label: '注册证号/备案证号', width: 150 }, // 1
  { prop: 'manufacturer', label: '生产厂家', width: 150 }, // 1
  { prop: 'prodBigCategory',
    label: '产品大类',
    width: 150 },
  { prop: 'purchaseCount', label: '采购数量', width: 150 }, // 1
  { prop: 'detailAmount', label: '小计金额 （元）', width: 150, formatter: row => getFormatterPrice(row.detailAmount) }, // 1
  { prop: 'deliveryCompanyProdCode', label: '配送商产品编码', width: 150 }, // 1
  { prop: 'receivedCount', label: '收货数量', width: 150 }, // 1
  { prop: 'refuseCount', label: '拒收数量', width: 170 }
]
// 收货-tab切换
export const receivingGoodsTabsArr = [
  { lab: '订单明细', val: 1 },
  { lab: '待收货信息', val: 2 }
]

// 去收获 - tab
export const handletabArr = [
  { lab: '短码', val: 1 },
  { lab: '长码', val: 2 }
]

// 去收货-表头
export const handlelistColumns = [
  { prop: 'hospitalProductCode', label: '医院产品编码', width: 150 },
  { prop: 'hospitalProductName', label: '医院产品名称', width: 150 },
  { prop: 'specification', label: '规格', width: 150 },
  { prop: 'productType', label: '型号', width: 150 },
  { prop: 'manufacturer', label: '生产厂家', width: 150 },
  { prop: 'registrationNumber', label: '注册证号/备案证号', width: 250 },
  { prop: 'category',
    label: '产品大类',
    width: 150,
    formatter: row => {
      return categoryArr[row.category]
    } },
  { prop: 'receiveNum', label: '发货数量', width: 150 },
  { prop: 'returnNum', label: '质检异常数量', width: 150 },
  { prop: 'sweepCount', label: '已扫码/待收数量', width: 150 },
  { prop: 'storageCondition', label: '储存条件', width: 150 },
  { prop: 'provinceProductCode', label: '省平台产品编码', width: 150 },
  { prop: 'itemCode', label: 'M平台产品编码', width: 150 }
]

// 物品详情-表头
export const handleitemColumns = [
  { label: '序号', type: 'index', width: 80 },
  { prop: 'udi', label: 'UDI', width: 150 },
  { prop: 'barCode', label: '主条码', width: 150 },
  { prop: 'productBatch', label: '批号', width: 150 },
  { prop: 'erialNumber', label: '序列号', width: 150 },
  { prop: 'productDate', label: '生成日期', width: 250 },
  { prop: 'expDate', label: '有效期', width: 150 },
  { prop: 'num', label: '数量', width: 150 },
  { prop: 'action', label: '操作', width: 150 }
]

// 已完成详情 - 详情表单内容
export const completedDetailsDetailForm = [
  { key: 'purchaseOrderStatus', title: '订单状态' },
  { key: 'createdAt', title: '订单提交时间' },
  { key: 'deliveryCompanyName', title: ' 配送商' },
  { key: 'productSpecCount', title: ' 品规数' },
  { key: 'orderDetailCount', title: ' 总数量' },
  { key: 'receiveNum', title: ' 已实收数量' },
  { key: 'returnNum', title: '质检退回数量' },
  { key: 'awaitReceiveNum', title: '待收数量' },
  { key: 'detailedAddress', title: '收货地址' },
  { key: 'user_Name', title: '联系人' },
  { key: 'user_Phone', title: '联系电话' },
  { key: 'orderTotalAmount', title: '订单总金额' }
]

// 已完成详情 - 详情 - 表格
export const completedDetailsTableData = [
  { label: '序号', type: 'index', width: 80 },
  { prop: 'purchaseOrderCode', label: '平台编码', width: 185 },
  { prop: 'nameEn', label: '平台产品名称', width: 150 },
  { prop: 'specification', label: '平台产品规格', width: 150 },
  { prop: 'productType', label: '平台产品型号', width: 150 },
  { prop: 'manufacturer', label: '生产厂家', width: 150 },
  { prop: 'registrationNumber', label: '注册证号/备案证号', width: 170 },
  { prop: 'category',
    label: '产品大类',
    width: 150,
    formatter: row => {
      return categoryArr[row.category]
    } },
  { prop: 'price', label: '单价（元）', width: 150, formatter: row => getFormatterPrice(row.price) },
  { prop: 'purchaseNum', label: '订单数量/单位', width: 150 },
  { prop: 'receiveNum', label: '实际收货数量', width: 150 },
  { prop: 'returnNum', label: '质检退回数量', width: 150 },
  { prop: 'awaitReceiveNum', label: '待收货数量', width: 150 },
  { prop: 'detailAmount', label: '小计金额(元)', width: 150, formatter: row => getFormatterPrice(row.detailAmount) },
  { prop: 'hospitalProductCode', label: '医院产品编码', width: 150 },
  { prop: 'hospitalProductName', label: '医院产品名称', width: 150 },
  { prop: 'entryNumf', label: '医院产品规格', width: 150 },
  { prop: 'entryNumf', label: '医院产品型号', width: 150 },
  { prop: 'storageCondition', label: '储存条件', width: 150 }
]

// 已完成详情 - 收货明细表单内容
export const completedDetailsForm = [
  { key: 'inStockCode', title: '收货单号' },
  { key: 'inStockObjCode', title: '收货时间' },
  { key: 'createdAt', title: ' 收货单数量' },
  { key: 'status', title: '实际收货数量' }
]

// 已完成详情 - 收货明细 - 表格
export const completedDetailsTable = [
  { width: '40', prop: 'placeholder', fixed: 'left', type: 'expand' },
  { label: '序号', type: 'index', width: 80 },
  { prop: 'cargo', label: '收货明细编号', width: 150 },
  { prop: 'hospitalProductCode', label: '医院产品编码', width: 150 },
  { prop: 'hospitalProductName', label: '医院产品名称', width: 150 },
  { prop: 'specification', label: '规格', width: 150 },
  { prop: 'productType', label: '型号', width: 150 },
  { prop: 'category',
    label: '产品大类',
    width: 150,
    formatter: row => {
      return categoryArr[row.category]
    } },
  { prop: 'batch', label: '批号', width: 150 },
  { prop: 'periodDate', label: '有效日期', width: 170 },
  { prop: 'purchaseNum', label: '收货单数量', width: 150 },
  { prop: 'minUnit', label: '计量单位', width: 150 },
  { prop: 'returnNum', label: '质检异常数量', width: 150 },
  { prop: 'receiveNum', label: '实际收货数量', width: 150 },
  { prop: 'storageCondition', label: '储存条件', width: 150 },
  { prop: 'provinceProductCode', label: '省平台产品编码', width: 150 },
  { prop: 'itemCode', label: 'M平台产品编码', width: 150 }
]

// 已完成详情 - 收货明细 - 表格
export const completedDetailsTableInside = [
  { label: '序号', type: 'index', width: 80 },
  { prop: 'udi', label: 'UDI', width: 150 },
  { prop: 'barCode', label: '主条码', width: 150 },
  { prop: 'productBatch', label: '批号', width: 150 },
  { prop: 'productDate', label: '生成日期', width: 150 },
  { prop: 'expDate', label: '有效期', width: 150 },
  { prop: 'serialNumber', label: '序列号', width: 150 },
  { prop: 'num', label: '数量', width: 170 },
  { prop: 'entryNumd', label: '条码图片', width: 150 }
]
// 详情 父级列表表头(部分入库)
export const cardConfirmedColumns = [
  { width: '40', prop: 'placeholder', fixed: 'left', type: 'expand' },
  { prop: 'cargo', label: '收货明细单号', width: 150 },
  { prop: 'hospitalProductCode', label: '医院产品编码', 'min-width': 150 },
  { prop: 'hospitalProductName', label: '医院产品名称', 'min-width': 150 },
  { prop: 'specification', label: '规格', width: 150 },
  { prop: 'productType', label: '型号', width: 150 },
  { prop: 'category',
    label: '产品大类',
    width: 150,
    formatter: row => {
      return categoryArr[row.category]
    } },
  { prop: 'batch', label: '批号', width: 170 },
  { prop: 'periodDate', label: '有效日期', width: 150 },
  { prop: 'purchaseNum', label: '收货单数量', width: 150 },
  { prop: 'minUnit', label: '计量单位', width: 150 },
  { prop: 'returnNum', label: '质检异常数', width: 150 },
  { prop: 'receiveNum', label: '实际收货', width: 150 },
  { prop: 'storageCondition', label: '存储条件', width: 150 },
  { prop: 'provinceProductCode', label: '省平台产品编码', width: 150 },
  { prop: 'itemCode', label: 'M平台产品编码', width: 150 }
]
// 展开组件的子列表表头(部分入库)
export const cardSonConfirmedColumns = [
  { prop: 'order', label: '序号', width: 150 },
  { prop: 'udi', label: 'UDI', 'min-width': 150 },
  { prop: 'barCode', label: '主条码', width: 150 },
  { prop: 'productBatch', label: '批号', width: 150 },
  { prop: 'productDate', label: '生产日期', width: 150 },
  { prop: 'expDate', label: '有效期', width: 150 },
  { prop: 'serialNumber', label: '序列号', width: 150 },
  { prop: 'num', label: '数量', width: 150 },
  { prop: 'count', label: '条码图片', width: 150 }// 条码图片
]
// 详情 父级列表表头(已完成)
export const cardCompletedColumns = [
  { width: '40', prop: 'placeholder', fixed: 'left', type: 'expand' },
  { prop: 'cargo', label: '收货明细单号', width: 150 },
  { prop: 'hospitalProductCode', label: '医院产品编码', 'min-width': 150 },
  { prop: 'hospitalProductName', label: '医院产品名称', 'min-width': 150 },
  { prop: 'specification', label: '规格', width: 150 },
  { prop: 'productType', label: '型号', width: 150 },
  { prop: 'category',
    label: '产品大类',
    width: 150,
    formatter: row => {
      return categoryArr[row.category]
    } },
  { prop: 'batch', label: '批号', width: 170 },
  { prop: 'periodDate', label: '有效日期', width: 150 },
  { prop: 'purchaseNum', label: '收货单数量', width: 150 },
  { prop: 'minUnit', label: '计量单位', width: 150 },
  { prop: 'returnNum', label: '质检异常数', width: 150 },
  { prop: 'receiveNum', label: '实际收货', width: 150 },
  { prop: 'storageCondition', label: '存储条件', width: 150 },
  { prop: 'provinceProductCode', label: '省平台产品编码', width: 150 },
  { prop: 'itemCode', label: 'M平台产品编码', width: 150 }
]
// 展开组件的子列表表头(已完成)
export const cardSonCompletedColumns = [
  { prop: 'order', label: '序号', width: 150 },
  { prop: 'udi', label: 'UDI', 'min-width': 150 },
  { prop: 'barCode', label: '主条码', width: 150 },
  { prop: 'productBatch', label: '批号', width: 150 },
  { prop: 'productDate', label: '生产日期', width: 150 },
  { prop: 'expDate', label: '有效期', width: 150 },
  { prop: 'erialNumber', label: '序列号', width: 150 },
  { prop: 'num', label: '数量', width: 150 },
  { prop: 'count', label: '条码图片', width: 150 }// 条码图片
]
// 弹框列表表头
export const dialogColumns = [
  {
    prop: 'platCode',
    label: '序号',
    width: 40
  },
  {
    prop: 'platCode',
    label: '产品通用编码',
    width: 200
  },
  {
    prop: 'companyCode',
    label: '产品名称',
    width: 200,
    'show-overflow-tooltip': true
  },

  {
    prop: 'prodNameCn',
    label: '产品名称(英)',
    width: 120,
    'show-overflow-tooltip': true
  },
  {
    prop: 'prodNameEn',
    label: '规格',
    width: 120,
    'show-overflow-tooltip': true
  },
  {
    prop: 'registNo',
    label: '单位',
    width: 120,
    'show-overflow-tooltip': true
  },
  {
    prop: 'bigType',
    label: '数量',
    width: 120,
    'show-overflow-tooltip': true
  },
  {
    prop: 'status',
    label: '生产批号',
    width: 120,
    'show-overflow-tooltip': true
  },
  {
    prop: 'Ordertime',
    label: '生产日期',
    width: 120
  },
  {
    prop: 'registNo',
    label: '有效期',
    width: 120,
    'show-overflow-tooltip': true
  },
  {
    prop: 'bigType',
    label: '注册证号/备案证号',
    width: 120,
    'show-overflow-tooltip': true
  },
  {
    prop: 'status',
    label: '生产企业',
    width: 120,
    'show-overflow-tooltip': true
  },
  {
    prop: 'Ordertime',
    label: '生产企业许可证号',
    width: 120
  },
  {
    prop: 'ops',
    label: '存储条件',
    'min-width': 120,
    fixed: 'right'
  }
]
export const dialogdetails = [
  {
    label: '开票员',
    key: ''
  },
  {
    label: '发货员',
    key: ''
  },
  {
    label: '复核员',
    key: ''
  },
  {
    label: '签收员',
    key: ''
  },
  {
    label: '地址',
    key: ''
  },
  {
    label: '电话',
    key: ''
  }
]
export const ReceivingTitle = [
  {
    label: '收货单号',
    key: 'receiveCode'
  },
  {
    label: '收货时间',
    key: 'createdAt'
  },
  {
    label: '收获单数量',
    key: 'purchaseNumCount'
  },
  {
    label: '实际收获数量',
    key: 'receiveNumCount'
  }
]
